import * as CONSTANTS from '@/constants/index'
import request from '@/api/request'


export default {
  /**
   * 获取common token
   * @param {String} appKey [必须] [请求的appKey]
   * @param {String} appSecret [必须] [请求的appSecret]
   */
  [CONSTANTS.API_GET_COMMONTOKEN]: (params) => {
    return request({
      url: `${CONSTANTS.API_BASEPREFIX}/v4/login/get-token`,
      method: 'GET',
      params,
    })
  },
}
